<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="format-detection" content="telephone=yes" />
    <meta content="noindex,nofollow" name="robots" />
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <meta http-equiv="expires" content="0">
    <title>久久商城</title>
    <link rel="stylesheet" type="text/css" href="__STATIC__/themes/css/core.css?v={$v}">
    <link rel="stylesheet" type="text/css" href="__STATIC__/themes/css/icon.css?v={$v}">
    <link rel="stylesheet" type="text/css" href="__STATIC__/themes/css/home.css?v={$v}">
    <script type="text/javascript" src="__STATIC__/themes/js/jquery.min.js?v={$v}"></script>
</head>
<body>

<header class="aui-header-default aui-header-fixed aui-header-bg">
    <a href="{:url('index/shop/buy',['id'=>$id,'sid'=>$sid,'gid'=>$gid])}" class="aui-header-item">
        <i class="aui-icon aui-icon-back-white"></i>
    </a>
    <div class="aui-header-center aui-header-center-clear">
        <div class="aui-header-center-logo">
            <div class="aui-car-white-Typeface">选择地址</div>
        </div>
    </div>
</header>
<section class="aui-myOrder-content">
    {volist name="addresses" id="address"}
    <div class="aui-Address-box">
        <div class="aui-Address-box-item">
            <div class="aui-Address-box-item-bd">
                <p>{$address.name}</p>
            </div>
            <div class="aui-Address-box-item-ft">
                <p>{$address.phone}</p>
            </div>
        </div>
        <div class="aui-Address-box-item">
            <div class="aui-Address-box-item-bd">
                <p>{$address.country}{$address.city}{$address.district}{$address.address}</p>
            </div>
        </div>
        <div class="aui-Address-box-item">
            <div class="aui-Address-box-item-bd">
                <p onclick="setdefaultAddress('{$address.id}','{$address.uid}')">
                    <input type="checkbox" class="check goods-check goodsCheck" {if condition="$address.isDefault eq 1"} checked {/if} style="background-size: 17px 17px;"> <em style="padding-left:24px;">默认地址</em>
                </p>
            </div>
            <div class="aui-Address-box-item-ft">
                <a href="javascript:;" style="padding:3px 8px;border-radius:5px;background:#f00;color:#fff;" onclick="selAddress('{$address.id}','{$id}','{$sid}','{$gid}')">选择此地址</a>　
                <a href="javascript:;" onclick="delAddress('{$address.id}')">删除</a>
            </div>
        </div>
    </div>
    {/volist}
    <div class="aui-out" style="margin-top:50px;">
        <a href="{:url('index/shop/addAddress',['id'=>$id,'sid'=>$sid,'gid'=>$gid])}">新建收货地址</a>
    </div>
</section>

<script type="text/javascript" src="__STATIC__/themes/js/aui.js?v={$v}"></script>
<script src="__STATIC__/js/h5/select_address_upgrade.js?v={$v}"></script>
<script src="__STATIC__/js/h5/j.js"></script>
<script src="__STATIC__/layer/mobile/layer.js"></script>
</body>
</html>